package com.shop.cereshop.commons.domain.referral;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.math.BigDecimal;
import java.time.LocalDateTime;

/**
 * 代理商分润配置表实体类
 * 对应表：cere_agent_income_config
 */
@Data
@ApiModel(value = "CereAgentIncomeConfig", description = "代理商分润配置表")
@TableName("cere_agent_income_config")
public class CereAgentIncomeConfig {

  /**
   * 配置ID
   */
  @ApiModelProperty(value = "配置ID")
  @TableId(type = IdType.AUTO)
  private Long incomeId;

  /**
   * 分润比例（百分比，如5.50表示5.5%）
   */
  @ApiModelProperty(value = "分润比例（百分比，如5.50表示5.5%）")
  private BigDecimal incomeRate;

  /**
   * 状态 1-启用 0-禁用
   */
  @ApiModelProperty(value = "状态 1-启用 0-禁用")
  private Integer state;

  /**
   * 创建时间
   */
  @ApiModelProperty(value = "创建时间")
  @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
  private LocalDateTime createTime;

  /**
   * 更新时间
   */
  @ApiModelProperty(value = "更新时间")
  @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
  private LocalDateTime updateTime;
}
